#include<iostream>
#include<string>

int main()
{
    using namespace std;
    string name_first,name_last;
    cout << "Enter your first name:";
    getline(cin,name_first);
    cout << "Enter your last name:";
    getline(cin,name_last);
    cout << "Here's the information in a single string:" << name_last + "," + name_first << endl;

    return 0;
}